<script>
	export default {
		globalData:{
			// BASEURL:'https://base.delivery.heiwangke.net/base-delivery-api',
			BASEURL:'https://base.delivery.jys-tz.cn/base-delivery-api',
		},
		onLaunch: function() {
			console.log('App Launch')
			// #ifdef MP-WEIXIN
			uni.setStorageSync('statusBarHeight',(uni.getWindowInfo().statusBarHeight+44)+'px')
			// #endif
			// #ifndef MP-WEIXIN
			uni.setStorageSync('statusBarHeight',(uni.getSystemInfoSync().statusBarHeight+44)+'px')
			// #endif
			uni.getSystemInfo({
				success: function(res) {
					uni.setStorageSync('safeAreaInsets',res.safeAreaInsets)
				}
			});
		},
		onShow: function() {
			const updateManager = uni.getUpdateManager();
			updateManager.onUpdateReady(function(res) {
				uni.showModal({
					title: '更新提示',
					content: '新版本已经准备好，是否重启应用？',
					showCancel: true,
					success(res) {
						if (res.confirm) {
							uni.clearStorageSync();
							updateManager.applyUpdate();
						}
					}
				});
			});
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	/*每个页面公共css */
	.flex{
		display: flex;
		align-items: center;
	}
	.flex_jc_sb {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.flex_jc_cent {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.kf_zw{
		height: 120rpx;
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
	}
	
	scroll-view ::-webkit-scrollbar{
	    display: none;
	    width: 0 !important;
	    height: 0 !important;
	    -webkit-appearance: none;
	    background: transparent;
	}
	
	.price {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #FF0000;
		text {
			font-weight: 500;
			font-size: 20rpx !important;
		}
		.t2 {
			font-weight: 500;
			font-size: 24rpx !important;
			color: #D1D1D6;
		}
	}
</style>
